package com.firewolf.rbac.controller;

import lombok.extern.slf4j.Slf4j;
import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.ResponseBody;

/**
 * 作者：刘兴
 * 时间:19/3/5
 **/
//@Controller
@Slf4j
@RequestMapping
public class LoginController {

    @GetMapping("/hello")
    @ResponseBody
    public String hello() {
        log.error("hello");
        return "hello,world2";
    }

    @GetMapping("/login")
    public String login() {
        return "/login.html";
    }

}
